package com.tongzhan.entity.xiangxian;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 示范点
 *
 * @author hongjianbin
 * @date 2020/7/20
 */
@TableDoc(table = "t_examplepoint",desc = "品牌")
@Data
@Document(collection = "t_examplepoint")
public class ExamplePoint extends BaseModel {
    @PrimaryKey
    @ColumnDoc("主键id")
    private String epid;//主键id

    @ColumnDoc("名称")
    private String name;//名称

    @ColumnDoc("地点")
    private String address;//地点

    @ColumnDoc("经度")
    private String latitude;//经度

    @ColumnDoc("纬度")
    private String longitude;//纬度

    @ColumnDoc("图片")
    private String url;//图片

    @ColumnDoc("简介")
    private String info;//简介

    @ColumnDoc("")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date time;//

    @ColumnDoc("")
    private Integer is_del;

    @ColumnDoc("类型 1是党派 2是侨台 3是乡贤")
    private Integer type;//类型 1是党派 2是侨台 3是乡贤

    @ColumnDoc("街道")
    private String streetCode;//街道

    @ColumnDoc("村社区")
    private String villageCode;//村社区

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间
}
